#include "../include/threadpool.h"
#include "../include/task.h"
#include "glogloging.h"
#include <functional>
#include <iostream>
#include <iostream>
#include <unistd.h>

void fc(std::shared_ptr<void> args)
{

}

int main()
{   
    //初始化为64个线程
    std::shared_ptr<ThreadPool> Normal(new ThreadPool(64,GlogLogger::GetInstance()));
    int a = Normal->Init();
    FuncType func = std::bind(fc,std::placeholders::_1);
    std::shared_ptr<void> pd(new int{3});
    Normal->PostTask(func,pd);
    Normal->Fini();
}
